package fuxi1;

public class Emp {
    String name;
    int age;
    double salary;
    //无参的构造
    public Emp(){

    }
    //全参构造
    public Emp(String name,int age,double salary){
        this.name=name;
        this.age=age;
        this.salary=salary;
    }
    public String toString(){
        return name+"  "+salary;
    }



}
